package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_lock_join", desc = "逐鹿隋唐-加入锁定商会日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_join", isCross = true)
public class LogCrossSuiTangLockJoin extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", isIndex = true, dataAttribute = "chasedeer_groid")
    private int groupId;
    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "chasedeer_guild")
    private String unionId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    public LogCrossSuiTangLockJoin(int activityId, int groupId, String unionId, long userId) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
